package com.dkm.ec.bbs.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.bbs.domain.PostsImg;
import com.dkm.ec.bbs.repository.PostsImgRepository;
import com.dkm.ec.bbs.persistence.dao.PostsImgQueryDao;
import com.dkm.ec.bbs.persistence.entity.PostsImgPo;

/**
 * 对象功能:帖子图片 Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-05-24 19:05:53
 */
@Repository
public class PostsImgRepositoryImpl extends AbstractRepository<String, PostsImgPo,PostsImg> implements PostsImgRepository{
	  
	@Resource
	private  PostsImgQueryDao postsImgQueryDao;

	public PostsImg newInstance() {
		PostsImgPo po = new PostsImgPo();
		PostsImg postsImg = SpringHelper.getBean(PostsImg.class);
		postsImg.setData(po);
		return postsImg;
	}

	public PostsImg newInstance(PostsImgPo po) {
		PostsImg postsImg = SpringHelper.getBean(PostsImg.class);
		postsImg.setData(po);
		return postsImg;
	} 
	
	@Override
	protected IQueryDao<String, PostsImgPo> getQueryDao() {
		return postsImgQueryDao;
	}
	
}
